@import '../../../../styles/theme.scss';

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  font-family: var(--font-family);
}

.content-wrapper {
  flex: 1;
  padding: var(--spacing-lg) 0;
  overflow: hidden;
}

.content {
  margin: 0 var(--spacing-lg);
  display: flex;
  height: 100%;
  gap: var(--spacing-lg);

  .left {
    width: 16%;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    
    &:hover {
      box-shadow: var(--shadow-lg);
    }
  }

  .main {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: transparent;
    border-radius: var(--radius-lg);

    .canvas-wrapper {
      position: absolute;
      width: 36%;
      height: calc(100% - 40px);
      top: 50%;
      left: 50%;
      transform: translateX(-50%) translateY(-50%);
      overflow: auto;
      background: var(--bg-primary);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-xl);
      border: 1px solid var(--border-light);
      transition: all var(--transition-normal);
      
      &:hover {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
      }
      
      // 现代化滚动条
      &::-webkit-scrollbar {
        width: 8px;
      }
      
      &::-webkit-scrollbar-track {
        background: var(--bg-tertiary);
        border-radius: var(--radius-full);
      }
      
      &::-webkit-scrollbar-thumb {
        background: var(--border-medium);
        border-radius: var(--radius-full);
        
        &:hover {
          background: var(--border-dark);
        }
      }
      
      .canvas-content {
        padding: var(--spacing-lg);
        display: flex;
        flex-direction: column;
      }
    }
  }

  .right {
    width: 20%;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    
    &:hover {
      box-shadow: var(--shadow-lg);
    }
  }
}

// 响应式设计
@media (max-width: 1200px) {
  .content {
    .left, .right {
      width: 280px;
    }
    
    .main .canvas-wrapper {
      width: 380px;
    }
  }
}

@media (max-width: 768px) {
  .content {
    flex-direction: column;
    gap: var(--spacing-md);
    
    .left, .right {
      width: 100%;
      height: 200px;
    }
    
    .main {
      height: 600px;
      
      .canvas-wrapper {
        width: 100%;
        height: 100%;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
      }
    }
  }
}
